package com.tian.controller;

import com.tian.dto.StationInfoDto;
import com.tian.dto.StationQueryRespDto;
import com.tian.feign.StationFeignClient;
import com.tian.util.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author tianwc  公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年05月11日 22:11
 * 博客地址：<a href="http://woaijava.cc/">博客地址</a>
 * <p>
 * 站点信息
 */
@RestController
@RequestMapping("/station")
public class StationController {
    @Resource
    private StationFeignClient stationFeignClient;

    @PostMapping("/page")
    public CommonResult<StationQueryRespDto> page(@RequestBody StationInfoDto stationInfoDto) {
        return stationFeignClient.page(stationInfoDto);
    }
}
